package com.soft.dao;

import com.soft.entity.GoodsType;
import com.soft.util.Connect;

import java.util.ArrayList;
import java.util.List;

public class GoodsTypeDao {

    private Class<GoodsType> goodsTypeClass;
    public GoodsTypeDao() {
        goodsTypeClass = (Class<GoodsType>)GoodsType.class;
    }

    public List<GoodsType> getAll() {
        List<Object> param = new ArrayList<Object>();
        List<GoodsType> list = new ArrayList<GoodsType>();
        String sql = "select * from goodstype";
        list = Connect.getInstance().queryListObject(sql, param, goodsTypeClass);
        return list;
    }

}
